[Contents] [Index] [Help] [Browse <] [Browse >]
FixIcons              FILE/M, ALLOWNOBORDERS=ANB/S, ALLOWNOLABELS=ANL/S,
                      NOFIXOFFSET=NFO/S, SYNCWBTOOPUS=SWO/S,
                      SYNCOPUSTOWB=SOW/S, REPORT/S

The command is designed to fix positioning problems with icons because of
slightly different offsets used by Opus and Workbench.  Opus assumes the
icons are displayed from 0,0 in the drawer window.  If the drawer window
(icon) had a non-zero offset then you could see different placement
between Opus and Workbench.

It also fixes those rogue icons which have been created incorrectly and
may randomly have set the bits we use for Icon Labels and Icon Border.

By default you should not need to use any of the parameter flags. Just
call FixIcons on the root dir of the offending device.

NOTE: The module ONLY looks for xxx.info files.  In the root or current
directory, you MUST select the 'xxx.info' files AS WELL AS the Directories
if you wish these to be updated as well.

The function acts on all selected files and directories recursively, making
the following changes to icons:

- Clears the ICONF_BORDER_ON and ICONF_BORDER_OFF flags, (unless
  ALLOWNOBORDERS switch is set).

- Clears the ICONF_NO_LABEL flag, (unless ALLOWNOLABELS switch is set).

- Resets the dd_CurrentX and dd_CurrentY values of drawer/disk icons to
  0,0, AND offsets all icons within that drawer by the values of these
  two fields, (unless NOFIXOFFSET switch is set).

- If the SYNCWBTOOPUS switch is set, the Workbench position field within
  the icon will be set to the same coordinates as the Opus position field.

- If the SYNCOPUSTOWB switch is set, the Opus position field within the
  icon will be set to the same coordinates as the Workbench position field.
  Additionally, the ICONF_POSITION_OK flag is cleared.

If an icon file itself is selected, function will operate on that file, but
will ignore files and directories which are not icons.

Additionally, if a directory is selected, the function it will enter the
directory recursively and perform actions on the contents.

If the NFO flag is not set and the Disk.info file is one of the selected
files, FixIcons will read the Disk.info file first and use the offsets
within to adjust the positions of other selected icons in the root
directory.